const express = require('express')
const router = express.Router()


const taskHandler = require('../api_handler/task_handler.js')


router.get('/list', taskHandler.getTaskList)
router.post('/add', taskHandler.addTask)
router.put('/update', taskHandler.updateTask)
router.delete('/del/:taskId', taskHandler.delTask)
router.get('/detail/:taskId', taskHandler.getDetail)

module.exports = router